﻿using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

namespace FsAddInManager
{
    [Transaction(TransactionMode.ReadOnly)]
    public class FsAddInManagerReadOnly : IExternalCommand
    {
        public Result Execute(ExternalCommandData revit, ref string message, ElementSet elements)
        {
            StaticUtil.m_regenOption = RegenerationOption.Manual;
            StaticUtil.m_tsactMode = TransactionMode.ReadOnly;
            return AIM.Instance.ExecuteCommand(revit, ref message, elements, false);
        }
    }
}
